package com.hongyuan.sellcoach.ui.course.view_mode;

import androidx.annotation.NonNull;
import androidx.databinding.ObservableField;

import com.hongyuan.mvvmhabitx.binding.command.BindingCommand;
import com.hongyuan.sellcoach.base.ItemViewModel;
import com.hongyuan.sellcoach.ui.course.beans.SalesGiveLessonBeans;

public class SalesGiveLessonItemViewModel extends ItemViewModel<SalesGiveLessonViewMode> {

    public ObservableField<SalesGiveLessonBeans.ListBean> entity = new ObservableField<>();

    public SalesGiveLessonItemViewModel(@NonNull SalesGiveLessonViewMode viewModel, SalesGiveLessonBeans.ListBean bean) {
        super(viewModel);
        entity.set(bean);
    }

    //改变选中的门店
    public BindingCommand goDetails = new BindingCommand(() -> {
        //Bundle bundle = new Bundle();
        //bundle.putString("cp_id",String.valueOf(entity.get().getCp_id()));
        //viewModel.startActivity(StoreLessonDetailsActivity.class,bundle);
    });
}
